package cn.xiaonhui;

import java.util.Enumeration;
import java.util.Properties;

public class ExampleTest38 {

	public static void main(String[] args) {
		
		Properties properties=new Properties();//创建Properties对象
		properties.setProperty("Backgroup-color", "red");
		properties.setProperty("font-size", "14px");
		properties.setProperty("Language", "Chinese");
		
//		for(Object obj:properties) {
//			System.out.println(properties.get("Language"));
//		}
		//获取Enumeration对象的所有键的枚举
		Enumeration names=properties.propertyNames();
		while (names.hasMoreElements()) {
			String key=(String)names.nextElement();
			String value=properties.getProperty(key);
			System.out.println(key+"="+value);;
		}
		System.out.println(properties);

	}

}